﻿using System;

namespace Salary.Domain
{
    public class Sale : Entity
    {
        private Employee _employee;
        private DateTime _date;
        private decimal _summ;

        #region Constructor

        protected Sale()
        {
            
        }
        public Sale(Employee employee, DateTime date, decimal summ)
        {
            _employee = employee;
            _date = date;
            _summ = summ;
        }
        #endregion

        #region Properties

        public virtual Employee Employee
        {
            get { return _employee; }
            set { _employee = value; }
        }
        public virtual DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }
        public virtual decimal Summ
        {
            get { return _summ; }
            set { _summ = value; }
        }
        #endregion
    }
}
